package com.baizhiedu.baizhiappsys.entity;

import java.io.Serializable;
import java.util.Date;

public class Pay implements Serializable {
    private Long payId;

    private Integer userId;
    /**
     * 支付设备  安卓 IOS
     */
    private String payDevice;
    /**
     * 购买课程的id
     */
    private Long payCourseId;
    /**
     * 时间
     */
    private Date payTime;
    /**
     * 支付方式  支付宝 微信 Apple Pay  银联支付
     */
    private String payMethod;
    /**
     * 设备ip地址
     */
    private String payDeviceIpAddress;

    private static final long serialVersionUID = 1L;

    public Long getPayId() {
        return payId;
    }

    public void setPayId(Long payId) {
        this.payId = payId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPayDevice() {
        return payDevice;
    }

    public void setPayDevice(String payDevice) {
        this.payDevice = payDevice;
    }

    public Long getPayCourseId() {
        return payCourseId;
    }

    public void setPayCourseId(Long payCourseId) {
        this.payCourseId = payCourseId;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }

    public String getPayDeviceIpAddress() {
        return payDeviceIpAddress;
    }

    public void setPayDeviceIpAddress(String payDeviceIpAddress) {
        this.payDeviceIpAddress = payDeviceIpAddress;
    }

    public Pay(Integer userId, String payDevice, Long payCourseId, Date payTime, String payMethod, String payDeviceIpAddress) {
        this.userId = userId;
        this.payDevice = payDevice;
        this.payCourseId = payCourseId;
        this.payTime = payTime;
        this.payMethod = payMethod;
        this.payDeviceIpAddress = payDeviceIpAddress;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", payId=").append(payId);
        sb.append(", userId=").append(userId);
        sb.append(", payDevice=").append(payDevice);
        sb.append(", payCourseId=").append(payCourseId);
        sb.append(", payTime=").append(payTime);
        sb.append(", payMethod=").append(payMethod);
        sb.append(", payDeviceIpAddress=").append(payDeviceIpAddress);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}